<div class="row">
<script charset="utf-8" src="/js/ueditor/ueditor.all.min.js"></script> 
<script src="/js/ueditor/ueditor.config.js" type="text/javascript"></script> 
<script src="/js/ueditor/ueditor.parse.js" type="text/javascript"></script> 
<script language="javascript" type="text/javascript">  <!-- UEditor --> 
　　 var editor = new baidu.editor.ui.Editor({
toolbars:[[ 'fullscreen','source','sourceEditor','Bold', 'Italic', 'Underline', 'ForeColor','backcolor', 'FontSize','|', 'InsertOrderedList', 'InsertUnorderedList','justifyleft','justifycenter','justifyright','lineheight']], 
}); <!--new一个对象，通过对象创建编辑器-->
	editor.render("content");<!--出入参数editor为textarea中的id值，并生成编辑器-->
</script> 
  <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
  <div class="span9"> 
  <form  onSubmit="return checkform()"  action="/<*$controller*>/op" method="post" class="form-horizontal">
  <div style="margin-left:30px;margin-bottom:10px;" ><input type="text" placeholder="本次修改说明" name="description" class="span6"></div>
  	 <div class="span7" style="margin-bottom:10px;">
     <textarea  name="content" id="content" style="height:250px;"><*$content*></textarea>
  	 </div>
     <div style="clear:both;"></div>
     
       <div class="form-actions">
<button type="submit" class="btn btn-primary btn-large">保存修改</button>&nbsp;&nbsp;<button type="button" class="btn  btn-large" onclick="history.back()">放弃修改</button></div> 
  </form> 
  	 <table class="table table-hover" style="clear:both;">
	  <tr>
	  <th>&nbsp;</th>
	  <th>版本编号</th>
	  <th>历史版本</th>
	  <th>增加时间</th>
	  <th>&nbsp;</th>
	  </tr>
  	<*foreach from=$result item=a key=key name=foo*>
  	  <tr style="cursor:pointer;" <*if $id==$a.id*>class="success"<*else*>onclick="seeit(<*$a.id*>,<*$curpage*>)"<*/if*> >
      <td>&nbsp;</td>
	  <td><*$a.id*></td>
	  <td><*$a.title*></td>
	  <td><*$a.addtime|date_format:"%Y-%m-%d %H:%M:%S"*></td>
      <td>&nbsp;</td>
	  </tr>
	<*/foreach*> 
	  </table>
      <div class="page"><*$page*></div>
  </div>
</div>


<script type="text/javascript">

function seeit(adid,page)
{
   window.location='/<*$controller*>/index/id/'+adid+'/page/'+page;
}
</script> 
